package com.qjc.demo.train.gragh.adjacencylist;

/**
 * @ClassName: Edge
 * @Description: 边
 * @Author: qjc
 * @Date: 2022/5/2 10:39 PM
 */
public class Edge {
    String name;// 边的名称
    int weight;// 权重
    Edge next;// 被指向的下一个边

    public Edge(String name, int weight, Edge next) {
        this.name = name;
        this.weight = weight;
        this.next = next;
    }
}
